<?php
/*========================================= JooSam =========================================/
/																							/
/	Extention:		JooSam																	/
/	Created by:		Broadcastweb.eu - Paules												/
/	Site:			http://www.broadcastweb.eu												/
/	Email:			support@broadcastweb.eu													/
/	Copyright:		2011 - 2012 (c) Broadcastweb.eu											/
/	License:		CC BY-NC-ND 3.0 ~ http://creativecommons.org/licenses/by-nc-nd/3.0/		/
/	File Version:	0003																	/
/																							/
/========================================== JooSam ========================================*/
// Joomla Security
defined('_JEXEC') or die;
JHtml::_('behavior.tooltip');

$send_msg = (int)$this->thanksmsg;
$msg_1 = JText::_('COM_JOOSAM_THANKS_HTML_001');
$msg_2 = JText::_('COM_JOOSAM_THANKS_HTML_002');
$msg_3 = JText::_('COM_JOOSAM_THANKS_HTML_003');
$msg_4 = JText::_('COM_JOOSAM_THANKS_HTML_004');
$msg_5 = JText::_('COM_JOOSAM_THANKS_HTML_005');
if($send_msg == 0){ $reqTxt = $msg_4; }
else if($send_msg == 1){ $reqTxt = $msg_3; }
else if($send_msg == 2){ $reqTxt = $msg_1; }
else if($send_msg == 3){ $reqTxt = $msg_5; }
else if($send_msg == 4){ $reqTxt = $msg_2; }
else{ $reqTxt = $msg_5; }
?>

<div id="jsm_message" style="text-align:center; margin:0 auto;">
	<h4 style="margin:4px 0 10px 0;"><?php echo $reqTxt; ?></h4>
	<br/><br/>
	<input type="submit" value="<?php echo JText::_('COM_JOOSAM_VIEW_REQUEST_GOBACK'); ?>" onclick="return jsm_goback();"/>
</div>
<script>
	function jsm_goback(){
		document.getElementById('jsm_hidden_pageload').value = 'home';
		document.getElementById('jsm_form').submit();
	}
</script>